package com.jieao.content.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.jieao.common.core.domain.Ztree;
import com.jieao.content.domain.Diary;
import com.jieao.content.dto.DiaryDto;

import java.util.List;
import java.util.Map;


public interface IDiaryService extends IService<Diary>{
    /**
     * 查询后端日记列表
     * @Author weifanl
     * @Date 15:22 2020/5/27
     * @Param [diary]
     * @return java.util.List<com.jieao.content.dto.DiaryDto>
    **/
    List<DiaryDto> selectDiaryList(DiaryDto diary);
    /**
     * 查询前端日记列表
     * @Author weifanl
     * @Date 15:22 2020/5/27
     * @Param [diary]
     * @return java.util.List<com.jieao.content.dto.DiaryDto>
     **/
    List<DiaryDto> selectFrontDiaryList(DiaryDto diary);
    /**
     * 新增日记
     * @Author weifanl
     * @Date 15:22 2020/5/27
     * @Param [diary]
     * @return int
    **/
    int insertDiary(DiaryDto diary);
    /**
     * 查询日记表单
     * @Author weifanl
     * @Date 15:22 2020/5/27
     * @Param [diaryId]
     * @return com.jieao.content.dto.DiaryDto
    **/
    DiaryDto selectDiaryById(Long diaryId);
    /**
     * 修改日记表单
     * @Author weifanl
     * @Date 15:21 2020/5/27
     * @Param [catalog]
     * @return int
    **/
    int updateDiary(DiaryDto catalog);
    /**
     * 删除日记-逻辑删除
     * @Author weifanl
     * @Date 17:46 2020/5/27
     * @Param [diaryId]
     * @return int
    **/
    int deleteDiaryByIds(String diaryId);
    /**
     * 修改日记常用状态
     * @Author weifanl
     * @Date 15:21 2020/5/27
     * @Param [catalog]
     * @return int
    **/
    int change(DiaryDto catalog);
    /**
     * 查询日记树
     * @Author weifanl
     * @Date 17:01 2020/5/27
     * @Param [diary]
     * @return java.util.List<com.jieao.common.core.domain.Ztree>
    **/
    List<Ztree> selectDiaryTree(DiaryDto diary);

    List<Map<String,Object>> getTimeData(Long id);
}
